package project.newCode.lights;

import project.hulpPakket.Color3f;
import project.hulpPakket.Point3f;
import project.hulpPakket.Vector3f;

public class DirectionalLight extends Light {

	private Vector3f direction;

	public DirectionalLight(Color3f color, float intensity, Vector3f direction) {
		super(color, intensity);
		this.direction = direction;
	}
	@Override
	public Vector3f getDirection(Point3f intersection) {
		return direction.multiply(-1);
	}
	public void setDirection(Vector3f direction) {
		this.direction = direction;
	}

}
